#!/bin/bash
set -e

if [ -n "$1" ]; then
  export DEPLOY_ENV="preview"
  npm run build:storybook preview
else
  export DEPLOY_ENV="production"
  npm run build:storybook
fi
